package com.meizi.experimentcode.entity;

import lombok.Data;

/**
 * @author Administration
 * @date 2022/2/28 - 11:36 - 星期一
 * @project lambda
 * @package com.meizi.experimentcode.entity
 * @by 晨
 */
@Data
public class Dish{

    private final String name;

    private final boolean vegetarian;

    private final int calories;

    private final Type type;

    public Dish(String name,boolean vegetarian,int calories,Type type) {

        this.name = name;
        this.vegetarian = vegetarian;
        this.calories = calories;
        this.type = type;
    }

    public enum Type {MEAT,FISH,OTHER}
}
